// src/services/eventBus.js
import mitt from 'mitt'

const emitter = mitt()

export const eventBus = {
  on: (event, callback) => emitter.on(event, callback),
  off: (event, callback) => emitter.off(event, callback),
  emit: (event, payload) => emitter.emit(event, payload)
}